#!/usr/bin/env Python
# coding=utf-8
"""
the url structure of website
"""

import sys     #utf-8，兼容汉字
import importlib
importlib.reload(sys)

from handlers.index import IndexHandler
from handlers.user import UserHandler
from handlers.user import RegisterHandler
from handlers.game import CreateRoomHandler
from handlers.game import RoomHandler
from handlers.game import JoinRoomHandler
from handlers.gameController import ChatMessageHandler
from handlers.index import LoginHandler
from handlers.index import LogoutHandler
from handlers.game import QuitRoomHandler
from handlers.weChatOauth import GetOpenIDHandler

url = [
    (r'/', IndexHandler),
    (r'/login', LoginHandler),
    (r'/logout', LogoutHandler),
    (r'/user', UserHandler),
    (r"/register", RegisterHandler),
    (r"/createRoom", CreateRoomHandler),
    (r"/room", RoomHandler),
    (r"/joinRoom", JoinRoomHandler),
    (r"/message", ChatMessageHandler),
    (r"/quitRoom", QuitRoomHandler),
    (r"/getOpenID", GetOpenIDHandler),
]